<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>添加鲜花表单</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <div class="container">
      <div class="row">
        <!-- //这里添加代码 -->
        <h1 class="text-center">添加鲜花</h1>
        <form  method="post" class="form-horizontal" action="doadd.php" enctype="multipart/form-data" >

          <div class="form-group">
            <label for="title" class="col-md-2 col-xs-3 control-label">鲜花标题：</label>
            <div class="col-md-10 col-xs-9">
            <input name="title" type="text" class="form-control" id="title"  placeholder="鲜花标题" required>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="place">产地：</label>
            <div class="col-md-10 col-xs-9">
            <input name="place" type="text" class="form-control" id="place" placeholder="产地" required>
            </div>
          </div>

         
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="intro">鲜花简介：</label>
            <div class="col-md-10 col-xs-9">
              <textarea name="intro" cols="40" rows="5"></textarea>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="place">添加时间：</label>
            <div class="col-md-10 col-xs-9">
            <input name="date" type="date" class="form-control" id="date" placeholder="添加时间" required>
            </div>
          </div>

        
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label"for="zq_pic">鲜花图片：</label>
            <div class="col-md-10 col-xs-9">
              <input name="zq_pic" type="file" id="zq_pic">
            </div>
          </div>


         
          <div class="form-group">
            <div class="col-md-10 col-xs-9 col-md-offset-2 col-xs-offset-3">
              <input class="btn btn-default" type="submit" value="添加">
              <input class="btn btn-default" type="reset" value="重置">
            </div>
          </div>
        </form>
      </div>
    </div>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>   